package com.zmm.xiaohashu.auth.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: 福禄寿
 * @Date: 2024/9/10 下午4:21
 * @Des: xiaohashu
 **/
@Getter
@AllArgsConstructor
public enum LoginTypeEnum {

    //验证码
    VERIFICATION_CODE(1),
    //密码
    PASSWORD(2);

    private final Integer value;

    public static LoginTypeEnum valueOf(Integer value){
        for (LoginTypeEnum loginTypeEnum : values()) {
            if (loginTypeEnum.getValue().equals(value)){
                return loginTypeEnum;
            }
        }
        return null;
    }

}
